* doprnt.c: Prefer signed to unsigned when either works.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 7 Jul 2011 02:14:52 +0000 (19:14 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 7 Jul 2011 02:14:52 +0000 (19:14 -0700)
commitc5245bf2ab3a3b661e688c66e97a75e6aedd6f15
treef03b1ea78a2a45bfa15e84ec1b327ae5d63cf441
parentd9d9d3ff24df164520370199f40f3096ae6c35d1
* doprnt.c: Prefer signed to unsigned when either works.

* eval.c (verror):
* doprnt.c (doprnt):
* lisp.h (doprnt):
* xdisp.c (vmessage):
Use ptrdiff_t, not size_t, when using or implementing doprnt,
since the sizes cannot exceed ptrdiff_t bounds anyway, and we
prefer signed arithmetic to avoid comparison confusion.
* doprnt.c (doprnt): Avoid a "+ 1" that can't overflow,
but is a bit tricky.
src/ChangeLog
src/doprnt.c
src/eval.c
src/lisp.h
src/xdisp.c